<div class="producers view">
<h2><?php  __('Producer');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $producer['Producer']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Fname'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $producer['Producer']['fname']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Lname'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $producer['Producer']['lname']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Sector'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $producer['Producer']['sector']; ?>
			&nbsp;
		</dd>
	</dl>
	<div class="related">
	<h3><?php __('Related Books');?></h3>
	<?php if (!empty($producer['Book'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Producer Id'); ?></th>
		<th><?php __('Publisher'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($producer['Book'] as $book):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $book['id'];?></td>
			<td><?php echo $book['producer_id'];?></td>
			<td><?php echo $book['publisher'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'books', 'action' => 'adminview', $book['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'books', 'action' => 'edit', $book['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'books', 'action' => 'delete', $book['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $book['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	
</div>
<div class="related">
	<h3><?php __('Related Films');?></h3>
	<?php if (!empty($producer['Film'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Language'); ?></th>
		<th><?php __('Producer Id'); ?></th>
		<th><?php __('Stars'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($producer['Film'] as $film):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $film['id'];?></td>
			<td><?php echo $film['language'];?></td>
			<td><?php echo $film['producer_id'];?></td>
			<td><?php echo $film['stars'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'films', 'action' => 'adminview', $film['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'films', 'action' => 'edit', $film['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'films', 'action' => 'delete', $film['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $film['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	
</div>
<div class="related">
	<h3><?php __('Related Musics');?></h3>
	<?php if (!empty($producer['Music'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Producer Id'); ?></th>
		<th><?php __('Songlist'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($producer['Music'] as $music):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $music['id'];?></td>
			<td><?php echo $music['producer_id'];?></td>
			<td><?php echo $music['songlist'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'musics', 'action' => 'adminview', $music['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'musics', 'action' => 'edit', $music['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'musics', 'action' => 'delete', $music['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $music['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	
</div>
</div>

